package com.neuedu.jdboot.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @author chens
 *
 */
public class Role implements Serializable {

	/**
	 * 序列化对象
	 */
	private static final long serialVersionUID = 7857567849869416968L;

	private Integer id;
	private String name;
	private Integer flag = new Integer(0);
	private String description;

	/**
	 * 该角色的权限，按照树形结构进行保存
	 */
	private List<Privilege> privileges;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public List<Privilege> getPrivileges() {
		return privileges;
	}

	public void setPrivileges(List<Privilege> privileges) {
		this.privileges = privileges;
	}
	
	
	

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	
	public Role(Integer id, String name, Integer flag, String description) {
		super();
		this.id = id;
		this.name = name;
		this.flag = flag;
		this.description = description;
	}

	public Role() {
		super();
	}

	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", flag=" + flag + ", description=" + description + ", privileges="
				+ privileges + "]";
	}

	

}
